package org.saasplay.resource;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;

/**
 * @author cuishifeng
 */
@Getter
@Setter
public class Resource {

    private JSONObject resource;

    public Resource() {
        this.resource = new JSONObject();
    }

    public Resource(JSONObject resource) {
        this.resource = resource;
    }

    public Resource(Object resource) {
        this.resource = (JSONObject) JSONObject.toJSON(resource);
    }


}
